package com.tongji.travelplan.unitstub;

import java.util.ArrayList;

import com.tongji.travelplan.beans.FoodBean;
import com.tongji.travelplan.dao.FoodDao;

public class testFood {
	public static void main(String[] args)
	{
		ArrayList<FoodBean> aList = new ArrayList<FoodBean>();
		FoodDao foodDao = new FoodDao();
		FoodBean foodBean = new FoodBean();
		aList = foodDao.getAllFood();
		for(int i = 0 ; i < aList.size() ; i++)
		{
			foodBean = aList.get(i);
			System.out.println(foodBean.getId()+":"+foodBean.getName()+":"+foodBean.getPrice()+":"+foodBean.getInfomation());
		}
	}
}
